{% extends 'adminlte/lib/base.html' %}
{% load adminlte_extras %}

{% block content %}
    <form>
    <div class="box">
        {% search_form %}

        <div class="box-body">
            <table class="table table-bordered">
                <tr>
                    <th>#</th>
                    <th>name</th>
                    <th>-</th>
                </tr>
                {% for group in pager.items %}
                    <tr data-id="{{ group.id }}">
                        <td>
                            <a href="{% url 'adminlte.group.edit' pk=group.id %}">{{ forloop.counter }}</a>
                        </td>
                        <td>{{ group.name }}</td>
                        <td>
                            {% confirm_btn view_name="adminlte.group.delete" pk=group.id %}
                        </td>
                    </tr>
                {% endfor %}
            </table>
        </div>
        <!-- /.box-body -->
        <div class="box-footer clearfix">
            {% pagination %}
        </div>
    </div>
    </form>
{% endblock %}
